package com.example.xw.common.service.fallback;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.xw.common.entity.Weibo;
import com.example.xw.common.service.WeiboService;
import com.example.xw.common.vo.Result;
import org.springframework.stereotype.Service;

@Service
public class FallbackWeiboServiceImpl implements WeiboService {
    @Override
    public Result<Weibo> weiboAdd(String userloginname, String title, String content, String img) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<Weibo> findById(int id) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<Page<Weibo>> findByUserLoginName(int pageNum, int pageSize, String userloginname, int state) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<Page<Weibo>> findList(int pageNum, int pageSize, String findtxt, int state) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<Integer> updateReadCount(int wbid) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<Weibo> updateState(int wbid, int state) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<Integer> findCountByUserLoginName(String userloginname, int state) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<Boolean> delete(int id) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }
}
